package org.umlviewer.xmiparser;

/**
 *
 * @author Rafa
 */
//factoria para crear parser xmi dependiendo de la version
public class FactoryXmiParser {

    public FactoryXmiParser()
    {
        
    }
    
    public static XmiParser getXmiParser(String xmiversion)
    {
        XmiParser retXmi=null;
        if(xmiversion.equals("2.1"))
            retXmi = new Xmi21Parser();
        else if(xmiversion.equals("1.1"))
            retXmi = new Xmi11Parser();
        return retXmi;
    }
}
